package com.mine.ability.qabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Mymq {
    @RabbitListener(queues = "queue1")
    public void getMsg(String msg){
        System.err.println(msg);
    }
}
